<?php



class TicketsMapBuilder implements MapBuilder {

	
	const CLASS_NAME = 'lib.model.openbravo.map.TicketsMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap(TicketsPeer::DATABASE_NAME);

		$tMap = $this->dbMap->addTable(TicketsPeer::TABLE_NAME);
		$tMap->setPhpName('Tickets');
		$tMap->setClassname('Tickets');

		$tMap->setUseIdGenerator(false);

		$tMap->addForeignPrimaryKey('ID', 'Id', 'VARCHAR' , 'RECEIPTS', 'ID', true, 255);

		$tMap->addColumn('TICKETID', 'Ticketid', 'INTEGER', true, 11);

		$tMap->addForeignKey('PERSON', 'Person', 'VARCHAR', 'PEOPLE', 'ID', true, 255);

		$tMap->addForeignKey('CUSTOMER', 'Customer', 'VARCHAR', 'CUSTOMERS', 'ID', false, 255);

		$tMap->addColumn('STATUS', 'Status', 'INTEGER', true, 11);

	} 
} 